//
//  UILable+extension.swift
//  新的一天新的开始
//
//  Created by 曾进 on 16/10/7.
//  Copyright © 2016年 曾进. All rights reserved.
//

import UIKit

//extension 扩展

extension UILabel {
    convenience init(text:String,fontSize: CGFloat = 13,textColor: UIColor = UIColor.darkGray, alignment: NSTextAlignment = .left,numberlines: Int = 0){
        self.init ()
        
        self.text = text
        self.font = UIFont.systemFont(ofSize: fontSize)
        self.textColor = textColor
        self.textAlignment = alignment
//        self.numberOfLines = numberOfLines
//        self.numberOfLines = numberOfLines
        self.numberOfLines = numberlines
    }
}
